#pragma once
#include <osg/Camera>

class UniformViewMatrixUpdateCallback : public osg::Uniform::Callback
{
public:
	UniformViewMatrixUpdateCallback() = delete;
	UniformViewMatrixUpdateCallback(osg::Camera * camera);
	virtual void operator()(osg::Uniform* uniform, osg::NodeVisitor* nv);

private:
	osg::Camera * mCamera;
	bool m_bFirstTime;
};